Xbasic

OBJECT.RECORDS_GET Function

Syntax

Record_Count as N = .Records_get()

Description

Returns the number of records displayed in the layout.

The <OBJECT>.RECORDS_GET() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.RECORDS_GET() method returns the number of records displayed by the layout.

This script attached to a button on the form tells how many records are displayed by the form:

dim ptr as P
ui_msg_box("Records", str(topparent.records_get()))
ptr = form.load("Customer Information")
ptr.show()
? ptr.Records_Get()
= 60.000000
ptr = browse.view("CustomerBrowse")
? ptr.Records_Get()
= 60.000000

Limitations

Desktop applications only.

See Also